Skip to content

Release 0.1.5#6

Merged
siy merged 4 commits intomainfrom
release-0.1.5
Dec 22, 2025
Merged

Release 0.1.5#6
siy merged 4 commits intomainfrom
release-0.1.5

Conversation

@siy
Copy link
Owner

@siy siy commented Dec 22, 2025

Summary

  • Fixed CutFailure propagation through repetitions and choices
  • Fixed trackFailure not called in generated ADVANCED mode parsers
  • Fixed cut operator scoping to immediate Choice
  • Added word boundary checks in grammars with cuts
  • Moved test files to resources (removed external dependencies)

Changes

  • PegEngine.java: CutFailure now propagates through ZeroOrMore, OneOrMore, Optional, Repetition, and Choice
  • CutOperatorRegressionTest.java: Added word boundary checks, moved to resource-based testing
  • Test resources added for self-contained tests

Test plan

  • All 268 tests pass
  • mvn verify succeeds
  • Version consistency verified (pom.xml, README, CHANGELOG)
  • No external file dependencies

🤖 Generated with Claude Code

siy and others added 4 commits December 22, 2025 07:18
CutFailure was propagating up through parent Choices, preventing
backtracking at higher grammar levels. Now cut only affects the
immediate containing Choice and is converted to regular Failure
when returned from a Choice.
- CutFailure propagates through Choice rules instead of being converted to Failure
- CutFailure propagates through ZeroOrMore, OneOrMore, Optional, Repetition
- Added word boundary checks before cuts in type declarations to prevent false commits
- Moved test files to resources to remove external dependencies
- Updated CLAUDE.md test count to 268

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@siy siy merged commit 96b3612 into main Dec 22, 2025
1 check passed
@siy siy deleted the release-0.1.5 branch December 22, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant